package org.jeecg.talentCooperation.fruit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.talentCooperation.fruit.entity.Fruit;
import org.jeecg.talentCooperation.fruit.model.FruitInfoResultModel;
import org.jeecg.talentCooperation.fruit.model.FruitResultModel;
import org.jeecg.talentCooperation.talent.entity.TalentBasic;

import java.util.List;

public interface FruitMapper extends BaseMapper<Fruit> {

    List<FruitResultModel> getFruitIdGroupByAuthorId();

    List<Fruit> getFruitList(Page<Fruit> page, @Param("fruit") FruitInfoResultModel fruit);

    FruitInfoResultModel getDetailFruitById(@Param("id") Long id);
}
